import os
import scheduled_upload, train, abbrs

if __name__ == '__main__':
    m = train.model()
    while abbrs.read_file('teleinstruction.txt').strip() == 'train':
        for i in range(train.LOG_INTERVAL * 10):
            m.train()
        os.system('git pull')